#!/bin/bash

/usr/bin/expect << EOF

set timeout 30
spawn ssh-add /root/.ssh/id_rsa_test

expect "Enter passphrase for*"
send "12345678\r"

EOF
